//Necessary to mark the class as entity class
@Entity
public class Customer {
	//Marks the property as primary key of the database table
    @Id
    private Long id;
    //Further properties    
    private String name;
    private String address;

    public void setId(Long id) { this.id = id; }
    public Long getId() { return this.id; }
    
    //Additional properties here ...

    //Getter and setter methods for the class properties.
    public void setAddress(String address) { this.address = address; }
    public String getAddress() { return this.address; }
    public void setName(String name) { this.name = name; }
    public String getName() { return this.name; }
    
    //Additional setter and getter methods here ...
}